import request from '@/utils/request'

// 查询商品表列表
export function listShping(query) {
  return request({
    url: '/system/shping/list',
    method: 'get',
    params: query
  })
}

// 查询商品表详细
export function getShping(id) {
  return request({
    url: '/system/shping/' + id,
    method: 'get'
  })
}

// 新增商品表
export function addShping(data) {
  return request({
    url: '/system/shping',
    method: 'post',
    data: data
  })
}

// 修改商品表
export function updateShping(data) {
  return request({
    url: '/system/shping',
    method: 'put',
    data: data
  })
}

// 删除商品表
export function delShping(id) {
  return request({
    url: '/system/shping/' + id,
    method: 'delete'
  })
}
